/* ----------------------------------------------------------------------
*
* Copyright (C) 2024 XiaoFei. All rights reserved.
*
* $file:		XiaoZhi_LED.h
* $Date:        24-April-2024
* $Revision: 	V1
* $Project: 	XiaoFei BSP Library
* $Taobao:      https://item.taobao.com/item.htm?abbucket=17&id=652566702396
*
* -------------------------------------------------------------------- */

#ifndef __XiaoZhi_LED_H
#define __XiaoZhi_LED_H

#define LED_RCC(x)   	                RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOA,(FunctionalState)x)
#define LED_GPIO		                GPIOA
#define LED_Pin			                GPIO_Pin_11
#define LED_Wr(x)					    GPIO_WriteBit(LED_GPIO,LED_Pin,(BitAction)x)
#define LED_Rd						    GPIO_ReadOutputDataBit(LED_GPIO,LED_Pin)
#define LED_EN			                Bit_RESET
#define LED_NO			                Bit_SET

/* 
* @function: 	GPIO_LED_Init
*/
void GPIO_LED_Init(void);

/* 
* @function: 	LED_ON
*/
void LED_ON(void);

/* 
* @function: 	LED_OFF
*/
void LED_OFF(void);

/* 
* @function: 	LED_GLIMMER
* @parameter:	[in] ms					    The number of microseconds you want to delay.
*/
void LED_GLIMMER(int ms);

/* 
* @function: 	LED_TURN
*/
void LED_TURN(void);
			
#endif

